import Vue from 'vue';
import VueAMap from 'vue-amap';

Vue.use(VueAMap);

// window._AMapSecurityConfig = {
//   securityJsCode: 'f355e70af45fbdee8ca0264fe25ee8f3', // key b64616884caebd930112a8a957dd3943
// };

VueAMap.initAMapApiLoader({
  key: '39eb58dc564fa6aa23d2c95ed7b78368', // 39eb58dc564fa6aa23d2c95ed7b78368
  plugin: ['AMap.ElasticMarker', 'AMap.MarkerClusterer', 'AMap.MapType', 'AMap.Geolocation', 'AMap.AdvancedInfoWindow',
    'AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Driving', 'AMap.RoadInfoSearch',
    'AMap.Scale', 'AMap.ToolBar', 'AMap.MouseTool', 'AMap.ControlBar'],
  v: '1.4.4',
  uiVersion: '1.1', // ui组件版本号 可直接在.vue页面使用 AMapUI直接挂载在window下
});
